import React from 'react';
import Content from '../components/Content';
import Block from '../components/Block';

export default () => {
  return {
    renderEditor: (props, editor) => {
      return (
        <Content {...props} node={editor.value.document} editor={editor} />
      );
    },
    renderBlock: props => {
      return (
        <div>
          {props.node.key}
          {props.children}
        </div>
      );
    },
    renderDecorator: props => {
      return <Block {...props}>{props.children}</Block>;
    }
  };
};
